package cn.itcast.service.system;

import cn.itcast.domain.system.Dept;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DeptService {
    //分页查询
    PageInfo findAll(String companyId, int page, int size);

    //根据ID查询
    List<Dept> findAll(String companyId);

    Dept findById(String id);


    void save(Dept dept);

    void update(Dept dept);

    //根据id删除
    void delete(String id);
}
